API Documentation
MAIN PAGE
NAMESPACES
CLASSES
Documentation
Headers
NilkinsWinUi
Components
ImageDisplay.h
1
// ImageDisplay.h
3
//
5
6
namespace
nkWinUi
7
{
11
enum class
IMAGE_DISPLAY_METHOD
12
{
13
STRETCH
= 0,
14
KEEP_RATIO
15
} ;
16
20
class
ImageDisplay
:
public
Component
21
{
22
public :
23
24
// Constructor, destructor
32
ImageDisplay
(
MainSystem
* parentSystem) ;
36
virtual
~ImageDisplay
() ;
37
38
// Getters
42
Image
*
getImage
()
const
;
46
IMAGE_DISPLAY_METHOD
getDisplayMethod
()
const
;
47
48
// Setters
54
virtual
void
setImage
(
Image
* value) ;
60
virtual
void
setDisplayMethod
(
IMAGE_DISPLAY_METHOD
value) ;
61
} ;
62
}
nkWinUi::ImageDisplay::ImageDisplay
ImageDisplay(MainSystem *parentSystem)
nkWinUi::Image
Abstracts an image to be used within the component.
Definition:
Image.h:12
nkWinUi::IMAGE_DISPLAY_METHOD
IMAGE_DISPLAY_METHOD
The available image display methods.
Definition:
ImageDisplay.h:12
nkWinUi::ImageDisplay::getDisplayMethod
IMAGE_DISPLAY_METHOD getDisplayMethod() const
nkWinUi::ImageDisplay::setImage
virtual void setImage(Image *value)
nkWinUi::Component
Base class for any graphical component.
Definition:
Component.h:12
nkWinUi::MainSystem
The main system of the component.
Definition:
MainSystem.h:18
nkWinUi::IMAGE_DISPLAY_METHOD::STRETCH
@ STRETCH
Will stretch to image to fit the component's size.
nkWinUi::ImageDisplay::~ImageDisplay
virtual ~ImageDisplay()
nkWinUi::ImageDisplay::getImage
Image * getImage() const
nkWinUi::ImageDisplay
Allows to display an image in the Ui.
Definition:
ImageDisplay.h:21
nkWinUi::IMAGE_DISPLAY_METHOD::KEEP_RATIO
@ KEEP_RATIO
Will keep the image's ratio and dimensions to display within the component.
nkWinUi::ImageDisplay::setDisplayMethod
virtual void setDisplayMethod(IMAGE_DISPLAY_METHOD value)
nkWinUi
Encompasses all API of component NilkinsWinUi.
Definition:
Clipboard.h:7
Generated by
Doxygen
1.8.18